package _11线程池;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String>
{

	@Override
	public String call() throws Exception 
	{
		
		for(int i=0;i<10;i++)
		{
			Thread.sleep(100);
			System.out.println(Thread.currentThread().getName()+ "进行计算中~~~~"+i);
		}
		int result = (int)(Math.random()*10);
		
		return "计算结果"+result;
	}

}
